package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 业务员管理对象 salesman_management
 *
 * @author Wubk
 * @date 2022-05-21
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("业务员管理")
public class SalesmanManagement implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(name = "id", value = "业务员管理id")
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty(name = "name", value = "姓名")
    @TableField(value = "name", condition = SqlCondition.LIKE)
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty(name = "phone", value = "手机号")
    @TableField(value = "phone", condition = SqlCondition.LIKE)
    private String phone;

    /** 账号 */
    @Excel(name = "账号")
    @ApiModelProperty(name = "salesmanNumber", value = "账号")
    @TableField(value = "salesman_number", condition = SqlCondition.LIKE)
    private String salesmanNumber;

    /** 密码 */
    @Excel(name = "密码")
    @ApiModelProperty(name = "salesmanPassword", value = "密码")
    @TableField(exist = false)
    private String salesmanPassword;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "registerTime", value = "注册时间")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "register_time", condition = SqlCondition.LIKE)
    private Date registerTime;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(name = "status", value = "状态")
    private String status;

    /** 微信标识 */
    @Excel(name = "微信标识")
    @ApiModelProperty(name = "openid", value = "微信标识")
    private String openid;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy", value = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    private String updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;

    @ApiModelProperty(name = "merchantId", value = "综合站ID")
    private Long merchantId;

    @ApiModelProperty(name = "userId", value = "内部系统用户ID")
    private Long userId;

    @ApiModelProperty(name = "idCardFront", value = "身份证正面")
    private String idCardFront;

    @ApiModelProperty(name = "idCardBack", value = "身份证背面")
    private String idCardBack;

    @ApiModelProperty(name = "otherStuff", value = "其他资料")
    private String otherStuff;

    /** 当前总积分 */
    @Excel(name = "当前总积分")
    @ApiModelProperty(name = "integral", value = "当前总积分")
    private Integer integral;

    /** 开户人姓名 */
    @Excel(name = "开户人姓名")
    @ApiModelProperty(name = "bankUserName", value = "开户人姓名")
    private String bankUserName;

    /**
     * 银行卡号
     */
    @Excel(name = "银行卡号")
    @ApiModelProperty(name = "bankNumber", value = "银行卡号")
    private String bankNumber;

    /**
     * 开户支行
     */
    @Excel(name = "开户支行")
    @ApiModelProperty(name = "bankName", value = "开户支行")
    private String bankName;

    @ApiModelProperty(name = "idCard", value = "身份证号码")
    private String idCard;

    @ApiModelProperty(value = "身份认证")
    private String identifyStatus;
}
